-- GENERATED SPELL FOR [Pentatharon] --


function spell0_20215(pUnit, Event) --@Carrion Swarm,n/a--
pUnit:FullCastSpellOnTarget(36039,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_20215', 2000, 1)
end

function Sorts_20215(pUnit, Event)
local choix_sorts_20215 = math.random(0, 0)
if choix_sorts_20215 == 0 then
pUnit:RegisterEvent('spell0_20215', 1, 1)
end
end

function mob20215_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_20215', math.random(1500, 3000), 1)
end

function mob20215_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob20215_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob20215_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(20215, 1, 'mob20215_Action')
RegisterUnitEvent(20215, 2, 'mob20215_Leave')
RegisterUnitEvent(20215, 3, 'mob20215_Kill')
RegisterUnitEvent(20215, 4, 'mob20215_Die')
